package com.qianniu.napi.admin.service;

import com.baomidou.mybatisplus.service.IService;
import com.qianniu.napi.admin.entity.Maccount;
import com.qianniu.napi.admin.entity.MaccountFlow;
import com.qianniu.napi.admin.entity.penum.IotypeEnum;

import java.math.BigDecimal;

/**
 * <p>
 * 商家账务流水表
 * </p>
 *
 * @author chenxuebin
 * @since 2018-08-08
 */
public interface IMaccountService extends IService<Maccount> {

    public void addMamountFlow(Long mid, BigDecimal amount, BigDecimal mamount,
                               Boolean isconfirm, BigDecimal jifen,
                               String sn, IotypeEnum iotype, Integer xftype, String remark, Long ywid,String transactionid);

    public Boolean maccountFlowConfirm(String sn, String transaction_id);

    //流水记录表
    public void addMaccountOutFlow(MaccountFlow maf);

    public Maccount initMaccount(Long uid, Long mid);

}
